package org.lzy.pt.bean;

import org.apache.commons.lang.time.DateFormatUtils;

public class Plugin {

	private String T_Name;

	private int T_Ver;

	private String T_Path;

	private String T_Data;
	
	private String T_CnName;

	public String getT_CnName() {
		return T_CnName;
	}

	public void setT_CnName(String t_CnName) {
		T_CnName = t_CnName;
	}

	private String T_DateTime;

	public Plugin() {
	}

	public Plugin(String t_Name, int t_Ver, String t_Path, String t_Data,
			String t_DateTime) {
		T_Name = t_Name;
		T_Ver = t_Ver;
		T_Path = t_Path;
		T_Data = t_Data;
		T_DateTime = t_DateTime;
	}

	public String getT_Name() {
		return T_Name;
	}

	public void setT_Name(String t_Name) {
		T_Name = t_Name;
	}

	public int getT_Ver() {
		return T_Ver;
	}

	public void setT_Ver(int t_Ver) {
		T_Ver = t_Ver;
	}

	public String getT_Path() {
		return T_Path;
	}

	public void setT_Path(String t_Path) {
		T_Path = t_Path;
	}

	public String getT_Data() {
		return T_Data;
	}

	public void setT_Data(String t_Data) {
		T_Data = t_Data;
	}

	public String getT_DateTime(boolean formated) {
		if(formated){
			return DateFormatUtils.format(Long.parseLong(T_DateTime),"yyyy-MM-dd HH:mm:ss");
		}
		return T_DateTime;
	}
	
	public String getT_DateTime() {
		return T_DateTime;
	}

	public void setT_DateTime(String t_DateTime) {
		T_DateTime = t_DateTime;
	}

}
